package com.yswy.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yswy.domain.common.BasePojo;
import com.yswy.domain.entity.user.User;
import com.yswy.domain.vo.gld.addOrUpate.SoftnessAddOrUpdate;
import com.yswy.domain.vo.gld.addOrUpate.WhitelistAppUserAddOrUpdate;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
@AllArgsConstructor
@Api(tags = "app白名单用户信息")
@TableName(value = "whitelist_app_user")
public class WhitelistAppUser extends BasePojo<WhitelistAppUser> {
    @ApiModelProperty("设备 ID")
    private String deviceId;
    @ApiModelProperty("oaid")
    private String oaid ;
    @ApiModelProperty("设备编号")
    private String phoneNo ;
    @ApiModelProperty("设备型号")
    private String modelInfo;
    public WhitelistAppUser(WhitelistAppUserAddOrUpdate res, User user){
        this.deviceId =res.getDeviceId();
        this.oaid =res.getOaid();
        this.phoneNo = res.getPhoneNo();
        this.modelInfo =res.getModelInfo();
        super.setCreateBy(user.getId().longValue());
    }
    public WhitelistAppUser(){

    }
}
